package cn.zwx.goods.svc.rpc.dto;

import lombok.Data;
import org.apache.dubbo.apidocs.annotations.RequestParam;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author zhangwenxue
 */
@Data
public class AttrPageListDTO {

    @NotNull(message = "每页展示条数不能为空")
    @RequestParam(value = "0",description = "每页展示条数",required = true)
    private Integer pageSize;

    @NotNull(message = "当前页数不能为空")
    @RequestParam(value = "0",description = "当前页数",required = true)
    private Integer pageNum;

    @RequestParam(value = "属性名称",description = "品牌名称")
    @Length(max = 32,message = "属性名称不能超过32位")
    private String attrName;
}
